﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace Base.Data.Migrations
{
    public partial class org_alias_code : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "dept_id",
                table: "t_user",
                newName: "depart_id");

            migrationBuilder.AddColumn<string>(
                name: "alias_code",
                table: "t_organization",
                type: "character varying(60)",
                maxLength: 60,
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "alias_code",
                table: "t_organization");

            migrationBuilder.RenameColumn(
                name: "depart_id",
                table: "t_user",
                newName: "dept_id");
        }
    }
}
